package com.naiterui.ehp.bs.pc.modules.sys.controller;

import java.util.List;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.naiterui.ehp.bs.pc.modules.sys.utils.DictUtil;
import com.naiterui.ehp.bs.pc.modules.sys.vo.DictVO;

import io.swagger.annotations.Api;

/**
 * 数据字典
 */
@Validated
@Api(tags = "数据字典")
@RestController
@RequestMapping("sys/dict")
public class DictController {

    @GetMapping("/vue/list/{type}")
    public List<DictVO> vueList(@PathVariable("type") String type) {
        return DictUtil.queryDict(type);
    }

}
